﻿@model Role
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.Id)
    </div>
    <div class="editor-field">
        @if (Model == null||Model.Id.IsNullOrWhiteSpace())
        {
        @Html.EditorFor(model => model.Id)
        }
        else { 
            @Html.TextBoxReadOnlyFor(model => model.Id)
        }
        @Html.ValidationMessageFor(model => model.Id)
    </div>
</div>

<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.RoleName)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.RoleName)
        @Html.ValidationMessageFor(model => model.RoleName)
    </div>
</div>
<div class="layout-onecolumn">
    <div class="editor-label">
        @Html.LabelFor(model => model.Description)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Description)
        @Html.ValidationMessageFor(model => model.Description)
    </div>
</div> 